<template>
	<div class="box-child">
		<div>
			<button class="btn-white" @click="back">
				<i class="iconfont icon-fanhui"></i>返回
			</button>
		</div>
		<a-space :size="20">
			<slot name="btn"></slot>
		</a-space>
	</div>
</template>

<script>
export default {
	data() {
		return {};
	},

	components: {},

	computed: {},

	mounted() {},

	methods: {
		back() {
			this.$emit("child-back", false);
		},
	},
};
</script>
<style lang="scss" scoped>
.btn-white {
	min-width: 88px;
	white-space: nowrap;
	padding: 0 18px;
	height: 32px;
	line-height: 32px;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 2px;
	cursor: pointer;
	color: rgba(0, 0, 0, 0.65);
	font-size: 14px;
}
.box-child {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.iconfont {
	margin-right: 10px;
	position: relative;
	top: -2px;
}
</style>
